Question 60
Application debugging logs contain credentials. Which change best reduces the sensitive evidence created at the source?
- Remove secret values from logging and retain safe diagnostic context
- Apply downstream masking while leaving source emission unchanged
- Encrypt logs but keep printing credentials
- Restrict log readers while leaving plaintext credential emission unchanged
Explanation
Correct Answer
A:Preventing credential emission avoids copies throughout downstream storage and analytics. Request identifiers and sanitized error details can preserve useful troubleshooting evidence.
Incorrect Answers
B:Masking can protect supported read paths but does not eliminate the original sensitive values from the application's emitted diagnostic records.
C:At-rest encryption limits storage exposure but leaves secrets visible to authorized readers and any downstream system that processes the plaintext.
D:Reader controls reduce exposure but do not prevent credentials from being recorded and copied through the pipeline, which is the stated source-side goal.
Question 61
A dashboard must combine metrics from several accounts without distributing long-term credentials. Which monitoring design is appropriate?
- A read-only policy only in the monitoring account with no source relationship
- CloudWatch cross-account observability with authorized account links
- A VPC endpoint policy alone
- One shared access key in every dashboard widget
Explanation
Correct Answer
B:Supported account relationships let the monitoring account observe permitted telemetry while retaining identity-based access instead of sharing permanent API secrets.
Incorrect Answers
A:Local service permission does not by itself establish cross-account access to telemetry owned by the intended source accounts.
C:An endpoint policy can restrict requests through an endpoint but does not establish the monitoring account's cross-account telemetry relationship.
D:Replicating a permanent credential expands exposure and complicates revocation, rather than using the service's supported cross-account monitoring relationships.
Question 62
A data lake holds a year of security logs partitioned by date. A query needs one day. What reduces unnecessary scanning?
- Filter only the event's severity and omit the partition key
- Use LIMIT without filtering the date partition
- Sort by timestamp without selecting the date partition
- Apply the date partition predicate
Explanation
Correct Answer
D:Restricting the query to the relevant partition avoids scanning unrelated dates when the table and storage layout support partition pruning.
Incorrect Answers
A:A content predicate can select results while leaving the engine to read files across dates; it does not express the required date-based partition pruning.
B:Returning fewer rows does not necessarily prevent the query engine from scanning unrelated date partitions to find those rows.
C:Ordering results is not the same as restricting which partitioned objects the query must scan for the requested day.
Question 63
A client requests a Lambda invocation audit trail, not just function stdout. Which additional source is relevant?
- CloudTrail Lambda data events
- Only CloudWatch aggregate invocation-count metrics
- Only asynchronous Lambda destination records
- CloudTrail management events alone for the function
Explanation
Correct Answer
A:Invocation data events capture the supported API activity with caller context. Function application logs serve a different purpose and may omit that authorization context.
Incorrect Answers
B:Counts show volume but do not contain the per-request API caller identity needed for this invocation audit trail.
C:Those records concern a particular invocation outcome path and do not replace the requested general API invocation audit with its caller context.
D:Configuration auditing captures administrative operations but does not supply the selected function invocation data-event stream requested by the client.
Question 64
An analyst wants to run SQL directly against events collected in an existing CloudTrail Lake event data store. No S3 export or separate analytics catalog is required. Which approach fits?
- Use CloudTrail event history as a general SQL engine
- Change the trail's S3 log-file validation setting
- Run CloudWatch Logs Insights without ingesting the events there
- Run a CloudTrail Lake SQL query against that event data store
Explanation
Correct Answer
D:Lake queries use the collected event data store as the source. The query should constrain time and relevant fields to avoid scanning unrelated retained events.
Incorrect Answers
A:Event history provides bounded management-event lookup rather than SQL execution against the selected Lake event data store.
B:Digest generation protects verification of delivered trail files and does not execute a SQL query on the Lake store.
C:Logs Insights queries its configured log sources; an existing Lake store does not automatically become a CloudWatch log group.
Question 65
CloudWatch Agent reads its local file but receives AccessDenied on PutLogEvents. Which component should be corrected first?
- The file's readability by an unrelated interactive user
- The agent's local polling interval
- The Logs Insights query time range
- The agent's effective IAM delivery permissions
Explanation
Correct Answer
D:A service authorization denial indicates the sending identity lacks an applicable allowed operation or encounters a limiting policy; local file readability is already established.
Incorrect Answers
A:The stem already confirms the agent can read the file; another user's local access does not grant the agent permission to send the records to AWS.
B:A collection schedule does not resolve the explicit service-side denial of the PutLogEvents operation by the sender identity.
C:Query filters affect analysis after ingestion and cannot authorize an ingestion call that CloudWatch Logs has rejected.
Question 66
New application events are in the expected log group, but a Logs Insights query returns none. The query time range excludes their timestamps. What should be changed?
- Turn off encryption on the group
- Select the time range containing the events
- Create a second query over the same excluded time interval
- Recreate the instance role
Explanation
Correct Answer
B:Insights limits its search to the selected interval. Correcting that interval addresses the stated visibility problem without altering collection permissions.
Incorrect Answers
A:The described problem is a time filter, not a demonstrated decryption error; weakening confidentiality is unnecessary.
C:Changing the query instance while preserving the wrong boundaries still omits the events whose timestamps fall outside that interval.
D:The events were delivered successfully, so replacing the sending role does not correct the query's exclusion of their occurrence times.
Question 67
CloudTrail reports an S3 delivery error after the archive bucket policy was replaced. Which configuration is the most direct suspect?
- The trail's management-event read/write selection
- The bucket policy permissions required by CloudTrail
- The CloudWatch dashboard query interval
- The archive's object-retention duration
Explanation
Correct Answer
B:Delivery depends on the service being permitted to perform the required destination operations. Replacing the policy can remove those permissions or introduce a deny.
Incorrect Answers
A:Selection changes what is recorded, but it does not explain the stated destination authorization error that began after a policy change.
C:Query timing affects visualization and cannot grant CloudTrail permission to write files to the archive bucket.
D:Retention affects the lifetime of delivered files; it does not restore destination write permissions removed by the bucket-policy replacement.
Question 68
A CloudWatch metric filter does not count events because the JSON field path has different capitalization. Which fix is appropriate?
- Match the actual ingested JSON field name
- Increase the source instance memory
- Disable API authentication
- Change only the alarm threshold consuming the filter metric
Explanation
Correct Answer
A:Filter expressions evaluate the provided record structure. Correcting the field reference lets the intended events satisfy the configured match expression.
Incorrect Answers
B:Additional memory does not rewrite the filter expression or change the case of the JSON fields already ingested.
C:Authentication bypass would create risk and cannot repair a query or filter referring to the wrong JSON field.
D:A lower threshold cannot compensate for a filter that never emits the intended metric because its JSON field path does not match.
Question 69
An SNS email subscription used by an alarm remains pending confirmation. What should be done to complete that delivery path?
- Increase the alarm evaluation periods only
- Confirm the subscription using the recipient's verification message
- Publish additional messages while leaving confirmation pending
- Add another unconfirmed subscription for the same address
Explanation
Correct Answer
B:Pending email subscriptions are not active delivery destinations. Completing the recipient confirmation establishes the intended notification endpoint for published messages.
Incorrect Answers
A:Changing evaluation timing cannot activate the pending email subscription that prevents this destination from receiving published notifications.
C:Repeated publication does not activate an unconfirmed email subscription or complete the recipient verification required for delivery.
D:Duplicating a pending endpoint does not complete the recipient confirmation needed for an active email delivery path.
Question 70
A flow-log subscription reports a delivery-permission error for its CloudWatch Logs destination. What should be reviewed?
- The network ACL's application ingress rules only
- The flow-log aggregation interval only
- The flow-log delivery role and trust relationship
- The log group's retention duration
Explanation
Correct Answer
C:The service must assume the intended role and have destination-write permissions. Correcting that path addresses the stated ingestion authorization failure.
Incorrect Answers
A:Traffic filtering can affect observed flows, but it cannot repair the explicitly reported CloudWatch destination role authorization error.
B:Grouping records over a different interval does not correct missing service trust or permission to deliver them into CloudWatch Logs.
D:Retention controls expiry after ingestion and does not authorize the delivery role to create streams or write incoming flow records.