Question 170
An agent is permitted to fetch external URLs. A malicious document asks it to send a confidential summary in a URL query to an attacker-controlled domain. Which additional control directly addresses that exfiltration path?
- Log the completed URL and permit every request
- Increase the model context window
- Grant the agent a broader IAM role
- Constrain outbound destinations and permitted data transfers
Explanation
Correct Answer
D:Authorization to call a fetch tool does not imply permission to transmit any data to any host. Destination allowlists and payload checks constrain the actual egress operation.
Incorrect Answers
A:After-the-fact logging cannot prevent the disclosure and may create another sensitive copy of the confidential query string.
B:More input capacity does not enforce where a tool sends information or prevent confidential content from entering an outbound URL.
C:Additional privilege expands possible harm and does not restrict the external destination receiving the confidential query data.
Question 171
A hardened container should not need root privileges at runtime. What should be configured?
- A non-root user with only required capabilities
- Share the host's administrator credentials
- Mount the host root filesystem read-write
- Privileged mode for all containers
Explanation
Correct Answer
A:Reducing process privilege limits damage from application compromise, while testing ensures the required filesystem and network operations still function.
Incorrect Answers
B:Credential sharing bypasses workload identity boundaries and is unnecessary for an application that can run without root.
C:That mount exposes host integrity to the container and expands compromise impact rather than confining the application.
D:Privileged execution grants broad host access and directly conflicts with the requirement to minimize runtime authority.
Question 172
A container release must preserve approved content identity and verify its publisher. Which TWO controls address these requirements? Choose TWO.
- Accept every image in a public repository
- Use the repository description as the only approval
- Trust the latest tag indefinitely
- Validate the image signature against an approved signer policy
- Deploy by the approved immutable image digest
Explanation
Correct Answers
D:Signature verification supplies publisher provenance for the identified artifact, complementing the digest's content identity rather than replacing vulnerability assessment.
E:Content addressing binds deployment to exact image bytes rather than trusting a mutable tag that can later reference a different image.
Incorrect Answers
A:Public availability does not establish an approved publisher or guarantee that deployed bytes match the reviewed artifact.
B:Descriptive metadata is not a cryptographic verification of the publisher or the content that the runtime retrieves.
C:A mutable name can move after approval, so it does not reliably identify the exact reviewed release content.
Question 173
Application instances should receive security baseline configuration repeatedly, not just at initial launch. Which Systems Manager capability fits?
- An EC2 user-data script that runs only during first initialization
- State Manager associations
- An S3 object checksum alone
- A Route 53 hosted zone
Explanation
Correct Answer
B:Associations apply desired configuration on managed nodes according to the defined schedule, supporting ongoing convergence instead of a single launch-time script.
Incorrect Answers
A:Launch-time configuration is not the recurring desired-state mechanism needed to correct later drift on already-running managed nodes.
C:A checksum verifies object bytes but does not repeatedly execute configuration actions on the managed operating systems.
D:DNS records direct name resolution rather than applying configuration documents to managed EC2 instances over time.
Question 174
A developer requires SSH tunneling through Session Manager and expects a full command transcript in session logs. What limitation matters?
- KMS decrypts and indexes all forwarded sessions
- SSH and port-forwarding content is not available as a normal session transcript
- CloudTrail records all terminal keystrokes
- Every forwarded byte is automatically a readable command log
Explanation
Correct Answer
B:The tunneled protocol is not exposed as standard shell-session content for logging, so audit requirements may require a different access design.
Incorrect Answers
A:KMS performs authorized cryptographic operations; it is not a tunnel-inspection or terminal-session transcription service.
C:CloudTrail audits supported service API activity and does not become a full plaintext transcript of an encrypted SSH tunnel.
D:A transport tunnel does not give Session Manager the same command visibility as its standard interactive shell session logging.
Question 175
Inspector Lambda standard scanning finds dependency CVEs, but the team also needs supported function-source analysis for unsafe coding patterns. Which configuration adds that assessment?
- Only increase the standard scanning frequency
- Enable Lambda code scanning alongside standard scanning
- Only suppress the dependency findings
- Only enable ECR enhanced scanning for unrelated container images
Explanation
Correct Answer
B:The two scan types address different layers: package dependencies and supported code vulnerabilities. Runtime and language support must be checked rather than assuming universal source coverage.
Incorrect Answers
A:More dependency assessments do not turn the standard scan type into the separate source-code analysis capability.
C:Suppressing reported vulnerabilities changes visibility and adds no source-code assessment to the functions.
D:Registry image assessment does not automatically analyze the source of the Lambda functions in this scenario.
Question 176
An application is rebuilt from patched images, but old instances remain active. What must the rollout verify?
- Only that image storage is encrypted
- Only that the new AMI exists
- Every serving instance uses the approved patched version
- Only that the patched AMI passed its build tests
Explanation
Correct Answer
C:A secure image pipeline is incomplete operationally if traffic still reaches older vulnerable instances; replacement and health verification must cover the live fleet.
Incorrect Answers
A:At-rest protection does not establish that the application is executing the patched image rather than an older vulnerable baseline.
B:Artifact creation does not prove the running workloads have adopted it or that vulnerable instances stopped serving requests.
D:Image validation is necessary but does not prove every currently serving production instance was replaced with that validated artifact.
Question 177
A deployment pipeline must detect exposed hardcoded credentials in source before release. Which stage should be added?
- A larger runtime instance
- Secret scanning with controlled release gating
- A public repository mirror
- A longer container startup delay
Explanation
Correct Answer
B:Detection should stop unsafe release and trigger replacement of exposed credentials; simply removing a source string does not invalidate a previously leaked secret.
Incorrect Answers
A:Additional compute does not inspect repository contents or prevent credentials from entering the built artifact.
C:Wider distribution increases exposure and does not establish a scanning or remediation control.
D:Waiting before execution does not detect secret material or change the credential value embedded in the source.
Question 178
An authenticated AI client repeatedly requests extremely large generations, causing excessive inference consumption. Which application control most directly limits this abuse?
- Only enable encryption on prompt storage
- Increase every service quota without client-level controls
- Rely only on an instruction asking the model to be inexpensive
- Apply per-client request and token budgets with bounded output sizes
Explanation
Correct Answer
D:Authentication identifies the caller but does not limit consumption. Enforced application budgets and output bounds reduce resource abuse while complementing the service's account-level quotas.
Incorrect Answers
A:Confidentiality of stored prompts does not constrain how many inference resources the authenticated client can consume.
B:Larger quotas can increase the potential consumption and do not enforce fair or authorized usage for each client.
C:A prompt is not an enforceable resource accounting boundary, and the backend must constrain requests before allowing unbounded consumption.
Question 179
A golden image contains an agent but no validated startup configuration. What should the image tests verify?
- Only that the agent package has a valid signature
- Only that the package installation command exits successfully
- Only that the installer filename exists
- The security agent starts, authenticates, and delivers expected telemetry
Explanation
Correct Answer
D:Installing a binary is insufficient; operational tests must prove the deployed instance actually participates in the intended security monitoring path.
Incorrect Answers
A:Publisher integrity is valuable but does not prove the deployed agent starts correctly or sends authorized telemetry to the intended destination.
B:Installation success is narrower than runtime health, credential access, endpoint connectivity, and confirmed telemetry delivery after boot.
C:A file can remain after a failed install, and its presence does not prove the service runs or sends authorized telemetry.
Question 180
A private application needs S3 access without routing through a NAT gateway. Which VPC component can provide that path?
- An S3 gateway endpoint with appropriate routes and policies
- A security group with all outbound traffic
- An internet gateway alone
- A bucket policy allowing the instance role
Explanation
Correct Answer
A:The gateway endpoint supplies a private service route for the associated route tables; IAM and bucket authorization still determine permitted object operations.
Incorrect Answers
B:Permitting packets does not create the service route required to avoid NAT for the private subnet.
C:A private instance without a suitable public path does not gain private S3 connectivity simply because the VPC has an internet gateway.
D:Authorization is required for object access, but a policy grant does not create the missing private route from the subnet to S3.