Docsity

Alibaba Log Service ACP DevOps Engineer Practice Exam, Exams of Technology

Toggle sidebar
bg1
Alibaba Log Service ACP DevOps Engineer
Practice Exam
**Question 1. Which component in Alibaba Cloud Log Service (SLS) is responsible for collecting
logs from ECS instances?**
A) LogHub
B) Logtail Agent
C) ARMS
D) Function Compute
Answer: B
Explanation: Logtail Agent runs on ECS instances and forwards log files to SLS.
**Question 2. In the hierarchical structure of SLS, which entity directly contains shards?**
A) Project
B) Logstore
C) Logtail
D) LogHub
Answer: B
Explanation: A Logstore is a logical container that holds one or more shards for data
partitioning.
**Question 3. What is the primary purpose of LogHub in SLS?**
A) Store logs long‑term
B) Provide real‑time log consumption and streaming
C) Visualize log metrics
D) Generate alerts from log data
Answer: B
Explanation: LogHub enables real‑time data pipelines, allowing downstream systems to
consume logs as they arrive.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58

Partial preview of the text

Download Alibaba Log Service ACP DevOps Engineer Practice Exam and more Exams Technology in PDF only on Docsity!

Practice Exam

Question 1. Which component in Alibaba Cloud Log Service (SLS) is responsible for collecting logs from ECS instances? A) LogHub B) Logtail Agent C) ARMS D) Function Compute Answer: B Explanation: Logtail Agent runs on ECS instances and forwards log files to SLS. Question 2. In the hierarchical structure of SLS, which entity directly contains shards? A) Project B) Logstore C) Logtail D) LogHub Answer: B Explanation: A Logstore is a logical container that holds one or more shards for data partitioning. Question 3. What is the primary purpose of LogHub in SLS? A) Store logs long‑term B) Provide real‑time log consumption and streaming C) Visualize log metrics D) Generate alerts from log data Answer: B Explanation: LogHub enables real‑time data pipelines, allowing downstream systems to consume logs as they arrive.

Practice Exam

Question 4. Which statement best differentiates SLS from a traditional ELK stack? A) SLS requires manual scaling of Elasticsearch nodes. B) SLS provides a fully managed, serverless log ingestion and query service. C) ELK stack supports only structured logs. D) SLS does not support full‑text search. Answer: B Explanation: SLS is a managed service that eliminates the need to operate Elasticsearch, Logstash, and Kibana components. Question 5. Which phase in the log data lifecycle is responsible for converting raw logs into searchable fields? A) Transmission B) Indexing C) Storage D) Consumption Answer: B Explanation: Indexing parses log content and creates searchable indexes for efficient queries. Question 6. When configuring Logtail to collect Windows Event Logs, which file type is used to define the collection rules? A) .json B) .conf C. yaml D) .xml Answer: B

Practice Exam

C) Log Service query language D) Function Compute trigger Answer: B Explanation: Logtail supports masking rules that replace or remove sensitive data before sending logs to SLS. Question 10. When using Function Compute to process logs before storage, which trigger type should be selected? A) HTTP trigger B) Log Service trigger C) Timer trigger D) OSS trigger Answer: B Explanation: Log Service trigger invokes a Function Compute function each time a new log batch arrives. Question 11. Which SQL‑like clause in SLS query language is used to group logs by a field? A) ORDER BY B) GROUP BY C) HAVING D) PARTITION BY Answer: B Explanation: GROUP BY aggregates log records based on the specified field(s). Question 12. In SLS, which function would you use to calculate the 95th percentile latency from log entries?

Practice Exam

A) PERCENTILE(latency, 95) B) MEDIAN(latency) C) AVG(latency) D) MAX(latency) Answer: A Explanation: The PERCENTILE function returns the value below which a given percentage of observations fall. Question 13. Which visualization component of SLS lets you create dashboards from query results? A) Log Explorer B) Log Analytics C) Log Service Dashboard D) CloudMonitor Charts Answer: C Explanation: Log Service Dashboard allows building visual widgets based on log queries. Question 14. To detect a spike of 5xx errors within a 5‑minute window, which alert condition is most appropriate? A) count(*) > 100 over 5 minutes B. sum(response_time) > 500 over 5 minutes C) avg(status_code) = 5 over 5 minutes D) max(status_code) = 5 over 5 minutes Answer: A Explanation: Counting the number of log entries with 5xx status codes and comparing to a threshold detects spikes.

Practice Exam

Explanation: Log Service provides a data export job that writes log data to OSS buckets. Question 18. When integrating SLS with an external SIEM, which protocol is commonly used for log delivery? A) FTP B) HTTPS webhook C) MQTT D) SNMP trap Answer: B Explanation: HTTPS webhooks allow secure, real‑time push of log events to external SIEM platforms. Question 19. Which SDK language is NOT officially supported for programmatic access to SLS? A) Java B) Go C) Ruby D) Swift Answer: D Explanation: Alibaba Cloud provides SDKs for Java, Go, Python, PHP, C#, but not for Swift. Question 20. In SLS, what does the “shard count” of a Logstore influence? A) Maximum log retention period B) Parallelism of log ingestion and query C) Size of each log entry D) Number of dashboards allowed

Practice Exam

Answer: B Explanation: More shards enable higher concurrent write and read throughput. Question 21. Which log format is automatically parsed by SLS without custom regex? A) Apache combined log B) JSON C) CSV D) Plain text Answer: B Explanation: SLS can natively parse JSON logs into fields. Question 22. To collect SLB access logs, which SLS feature must be enabled? A) Logtail on SLB instance B) Logstore auto‑create for SLB C) Log Service integration in SLB console D) LogHub subscription to SLB Answer: C Explanation: The SLB console provides a switch to forward access logs to a specified Logstore. Question 23. When using Log Service’s full‑text index, which query operator is used for fuzzy matching? A) LIKE B) MATCH C) CONTAINS D) REGEXP

Practice Exam

Explanation: LogHub can feed logs to Flink jobs for real‑time analytics like anomaly detection. Question 27. What is the default retention period for logs in a newly created Logstore (if not specified)? A) 7 days B) 30 days C) 90 days D) 365 days Answer: B Explanation: SLS defaults to a 30‑day retention period unless overridden. Question 28. Which SLS query clause filters logs to a specific time range? A) WHERE __time >= '2023- 01 - 01' B) TIME BETWEEN '2023- 01 - 01' AND '2023- 01 - 02' C) __timestamp > '2023- 01 - 01' D) TIME_RANGE('2023- 01 - 01','2023- 01 - 02') Answer: A Explanation: The __time pseudo‑column can be used in WHERE to restrict timestamps. Question 29. To reduce storage cost, which SLS feature can compress logs automatically? A) Logstore GZIP option B) Shard compression level C) Logtail compression flag D) Log Service does not support compression Answer: C

Practice Exam

Explanation: Logtail can compress log data before transmission, reducing storage usage. Question 30. Which of the following is NOT a supported log source for direct ingestion by Log Service? A) OSS access logs B) RDS slow‑query logs via ActionTrail C) CDN logs via LogHub D) Kafka topic messages without a connector Answer: D Explanation: Kafka messages require a connector (e.g., LogHub); they are not ingested directly. Question 31. When creating a Logstore, which parameter determines the maximum query QPS? A) Shard count B) Logstore name length C) Project region D) Data retention days Answer: A Explanation: More shards increase the allowed query QPS. Question 32. Which Log Service feature helps correlate logs across multiple services by adding a common identifier? A) Logtail tag injection B) LogHub partition key C) Log Service cross‑logstore join D) ActionTrail correlation ID

Practice Exam

D) Resource health alarm Answer: C Explanation: Log Service provides built‑in alarm capabilities based on log query results. Question 36. To mask IP addresses in logs, which Logtail configuration element is used? A) replace_regex B) mask_field C) filter_pattern D) encryption_key Answer: A Explanation: replace_regex can substitute matched IP patterns with a placeholder. Question 37. Which of the following best describes the purpose of Log Service’s “Key‑Value Index”? A) Enable full‑text search across all fields B) Speed up queries on specific structured fields C) Store binary log data efficiently D) Provide automatic data backup Answer: B Explanation: Key‑Value Index creates inverted indexes for designated fields, accelerating equality and range queries. Question 38. When exporting logs to MaxCompute, which format does SLS use by default? A) CSV B) Parquet

Practice Exam

C) ORC

D) JSON

Answer: D Explanation: SLS exports logs in JSON format, which MaxCompute can ingest directly. Question 39. Which of the following is a prerequisite for using LogHub to stream logs to an external Kafka cluster? A) Enable cross‑region VPC peering B) Create a LogHub subscription with Kafka endpoint C) Install Logtail on the Kafka brokers D) Set Logstore retention to 365 days Answer: B Explanation: A LogHub subscription defines the external Kafka endpoint and authentication. Question 40. In SLS, what does the “Hot Data” storage tier refer to? A) Data stored in SSD for fast queries B) Data that is archived to OSS C) Data encrypted with KMS D) Data replicated across multiple regions Answer: A Explanation: Hot Data resides on high‑performance storage to support low‑latency queries. Question 41. Which ARMS feature provides distributed tracing across microservices? A) APM Dashboard B) TraceID correlation

Practice Exam

B) Log Service trigger on the target Logstore C) Timer trigger every 5 minutes D) OSS trigger on a bucket Answer: B Explanation: The Log Service trigger ensures each incoming log batch invokes the enrichment function. Question 45. Which log parsing method is most efficient for high‑volume Nginx access logs? A) Regular expression in Logtail B) JSON parsing in Log Service C) Built‑in Nginx log format parser in SLS D) Manual string split in Function Compute Answer: C Explanation: SLS provides a pre‑defined parser for common Nginx access log formats, reducing processing overhead. Question 46. Which of the following statements about Logstore shard size is true? A) Each shard can store up to 10 GB of raw logs. B) Shard size is automatically adjusted based on traffic. C) A shard’s write throughput is limited to 5 MB/s. D) The number of shards cannot exceed 128 per Logstore. Answer: C Explanation: Each shard has a maximum write throughput (approximately 5 MB/s) to guarantee performance.

Practice Exam

Question 47. To visualize error rate trends over the past 24 hours, which SLS function should be used in the query? A) TIME_SERIES(count(), interval=5m) B) HISTOGRAM(error_code, 24h) C) SLIDING_WINDOW(count(), 24h) D) WINDOW(count(*), 24h) Answer: A Explanation: TIME_SERIES aggregates counts into fixed intervals, ideal for trend charts. Question 48. Which of the following is a correct way to forward ActionTrail logs to a Logstore? A) Enable “Log Service Integration” in the ActionTrail console. B) Create a Logtail rule pointing to the ActionTrail bucket. C) Use CloudMonitor alarm to copy logs. D) Manually upload logs via API. Answer: A Explanation: ActionTrail provides a built‑in option to send its logs directly to SLS. Question 49. When setting up a Log Service dashboard, which widget type can display a heatmap of request latency distribution? A) Line chart B) Bar chart C) Heatmap chart D) Pie chart Answer: C

Practice Exam

Answer: A Explanation: max_file_size defines the cutoff; files larger than this are ignored or split. Question 53. In SLS, which pseudo‑column stores the original log line when parsing fails? A) __raw_message B) __original_log C) __message D) __unparsed Answer: A Explanation: __raw_message retains the complete log entry for troubleshooting parsing issues. Question 54. Which of the following is NOT a supported export destination for SLS data export jobs? A) OSS B) MaxCompute C) RDS MySQL D) E‑MapReduce Answer: C Explanation: Direct export to RDS is not supported; data must be routed via OSS or other big‑data services. Question 55. To reduce latency of log queries, which SLS setting should you adjust? A) Increase Logstore TTL B) Enable hot data cache C) Decrease shard count

Practice Exam

D) Turn off full‑text index Answer: B Explanation: Enabling hot data cache stores frequently accessed data in memory, lowering query latency. Question 56. Which metric is most appropriate for detecting a sudden increase in request volume? A) count(*) of access logs per minute B) avg(response_time) per minute C) max(cpu_utilization) per minute D) sum(bytes_sent) per minute Answer: A Explanation: Counting log entries directly reflects request volume. Question 57. Which of the following is a valid reason to use LogHub instead of direct Log Service queries for downstream analytics? A) Need for real‑time streaming into Flink B) Requirement for long‑term archival only C) Desire to avoid any network traffic D) To enable manual log editing Answer: A Explanation: LogHub provides a streaming interface suitable for real‑time processing frameworks. Question 58. When configuring a Logtail rule for Windows Event Logs, which field identifies the event source?