Design Secure Architectures

438 soru

Soru 261Soru

An enterprise is designing a secure multi-account environment to support multiple business units. The architecture must enforce centralized administrative control, federated access, and strict data protection policies. Specifically, the Solutions Architect must ensure that member accounts cannot delete Amazon S3 buckets containing centralized audit logs, and that employees authenticate using their corporate credentials to access designated AWS accounts.

Which combination of actions should the Solutions Architect recommend to achieve these goals? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Configure AWS IAM Identity Center and integrate it with the enterprise identity provider to federate user access.; Attach a service control policy (SCP) to the member account organizational units (OUs) that denies the s3:DeleteBucket and s3:DeleteObject actions on the centralized audit log buckets.

Cevap

To establish secure multi-account governance, configure AWS IAM Identity Center integrated with the enterprise identity provider to federate user access, and apply a service control policy (SCP) to the member account organizational units (OUs) to deny bucket and object deletion actions on the centralized audit log buckets.
Centralizing access control through AWS IAM Identity Center integrated with the corporate identity provider ensures safe, federated access without the need for manual credential management. Applying a service control policy (SCP) to the member account OUs establishes a strong security guardrail, preventing anyone—including local administrators—from deleting critical audit log resources.

Adım Adım Çözüm

1
Set up centralized federation.
Connect AWS IAM Identity Center to the corporate identity provider (IdP).
Allows employees to authenticate using existing corporate credentials and access their assigned AWS accounts dynamically via role assumption, avoiding the creation of static, local IAM users.
2
Enforce data protection via Organizations.
Create a service control policy (SCP) with a Deny effect for s3:DeleteBucket and s3:DeleteObject actions targeting the audit log buckets, and attach it to the OUs containing the member accounts.
SCPs act as permission guardrails that override local administrator permissions in member accounts, ensuring that log deletion is blocked across all target accounts.

Anahtar Kavram

Multi-account governance through AWS Organizations service control policies (SCPs) and centralized identity federation using AWS IAM Identity Center.
Tahmini Süre:2m 30s
Soru 262Soru

An enterprise wants to allow a third-party SaaS monitoring application to collect performance metrics from Amazon CloudWatch in their AWS account. The SaaS provider's application runs in its own AWS account. The solutions architect must configure this access securely following the principle of least privilege, preventing unauthorized access by other customers of the SaaS provider.

Which combination of steps should the solutions architect take to meet these requirements? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Create an IAM role in the enterprise account with a trust policy that trusts the SaaS provider's AWS account and requires a unique External ID; Attach a permissions policy to the IAM role that grants read-only access to Amazon CloudWatch metrics

Cevap

To securely grant access to the third-party SaaS monitoring application, the solutions architect should create an IAM role in the enterprise account with a trust policy that requires a unique External ID and trusts the SaaS provider's AWS account. Additionally, a permissions policy granting read-only access to Amazon CloudWatch metrics must be attached to this role.
The correct combination of steps involves creating an IAM role in the enterprise account that trusts the third-party's AWS account and enforces an External ID, and then attaching a CloudWatch read-only permissions policy to that role. This enables secure cross-account delegation of access without using long-term credentials and prevents the confused deputy security vulnerability.

Adım Adım Çözüm

1
Identify the correct cross-account access mechanism.
Determine that an IAM role with cross-account access is preferred over long-term credentials.
Using roles eliminates the need to manage and share long-term credentials like access keys.
2
Secure the trust relationship for the role.
Specify the third party's AWS account ID in the trust policy and require a unique External ID.
The External ID mitigates the confused deputy problem when a third party accesses multiple customer accounts.
3
Apply the principle of least privilege.
Attach a permissions policy to the IAM role that only allows read-only access to CloudWatch metrics.
This ensures that the monitoring application can only access the metrics it needs and cannot perform administrative changes.

Anahtar Kavram

Cross-account access using IAM roles and External IDs to secure third-party integration.
Soru 263Soru

A multinational corporation is implementing a centralized deployment pipeline. A containerized microservice hosted on Amazon ECS in a Shared Services account (Account ID: 888888888888888888888888) must dynamically retrieve runtime secrets and database credentials from AWS Secrets Manager located in a Production database account (Account ID: 999999999999999999999999). The Secrets Manager secret is encrypted using a Customer Managed Key (CMK) in the Production database account. The container in Account 888888888888888888888888 runs under an IAM task role named `EcsSharedTaskRole`. The architecture must enforce the principle of least privilege and prevent the storage of long-term credentials.

Which combination of configuration steps is required to securely enable this cross-account retrieval? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Attach an identity-based policy to `EcsSharedTaskRole` in Account 888888888888888888888888 that allows `secretsmanager:GetSecretValue` on the Production secret ARN and `kms:Decrypt` on the Customer Managed Key ARN. Update the secret's resource-based policy in Account 999999999999999999999999 to grant `secretsmanager:GetSecretValue` to the `EcsSharedTaskRole` ARN.; Configure the key policy of the Customer Managed Key in Account 999999999999999999999999 to grant `kms:Decrypt` permissions to `arn:aws:iam::888888888888:role/EcsSharedTaskRole`.

Cevap

The correct configuration requires attaching an identity-based policy to the task role that allows secrets retrieval and decryption, granting the task role access in the secret's resource policy, and updating the KMS key policy to permit decryption by the task role.
To establish secure cross-account access to an encrypted secret in Secrets Manager, you must grant permissions on both sides of the account boundary. First, the IAM identity (the task role) in the consuming account must have an identity-based policy that allows accessing the secret and using the KMS key. Second, the secret's resource-based policy must explicitly permit the consuming role. Third, the KMS key policy in the producing account must trust the consuming role to perform decrypt operations. This direct delegation configuration satisfies the principle of least privilege.

Adım Adım Çözüm

1
Configure identity-based permissions in the source account
The ECS task role has the necessary permissions to call cross-account APIs.
Before an IAM identity can access a resource in another account, it must be explicitly permitted by its own identity-based policy.
2
Configure the resource-based policy on the target secret
Secrets Manager permits the cross-account role to retrieve the secret value.
Cross-account access requires permission from the resource owner; the resource-based policy must explicitly list the external IAM role as an allowed principal.
3
Configure the KMS key policy on the Customer Managed Key
The external IAM role is allowed to decrypt the data key used to encrypt the secret payload.
Since the secret is encrypted with a Customer Managed Key, the key policy must trust the cross-account role principal. Identity-based policies alone cannot grant access to cross-account KMS keys without key policy cooperation.

Anahtar Kavram

Cross-account access delegation using IAM roles, resource-based policies, and KMS key policies under the principle of least privilege.
Soru 264Soru

A company is designing a secure architecture for a reporting application that runs on Amazon EC2 instances in a private subnet. The application must retrieve a database password that is updated every 30 days. Additionally, developers who are managed in an external corporate directory need administrative access to manage these EC2 instances. The company's security policy prohibits the use of long-term credentials or hardcoded secrets.

Which combination of actions should a solutions architect recommend to meet these requirements? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Configure AWS IAM Identity Center to federate the external directory, allowing developers to access AWS using temporary credentials associated with an administrative role.; Attach an IAM role to the EC2 instances using an instance profile, and configure the application to retrieve the database password dynamically from AWS Secrets Manager.

Cevap

The solutions architect should recommend configuring AWS IAM Identity Center for directory federation and using an IAM role on the EC2 instances alongside AWS Secrets Manager for database password retrieval.
Configuring AWS IAM Identity Center enables secure, centralized identity federation with the external corporate directory, providing developers with short-term credentials via IAM roles. Associating an IAM role with the EC2 instances allows them to assume permissions securely without embedded credentials, and AWS Secrets Manager securely stores and automatically rotates the database password.

Adım Adım Çözüm

1
Configure identity federation for developer access.
Developers use temporary credentials via AWS IAM Identity Center.
Secures access for external directory users without the need for long-term IAM access keys.
2
Configure EC2 instance profiles and IAM roles.
The application on the EC2 instances automatically receives temporary security credentials.
Eliminates the need to store hardcoded AWS credentials on the instances.
3
Store sensitive database credentials in AWS Secrets Manager.
Secrets are encrypted at rest and can be rotated automatically every 30 days.
Secures the database password and meets the rotation requirement seamlessly.

Anahtar Kavram

IAM role-based access, identity federation, and secure secrets management.
Soru 265Soru

A digital media platform hosts its streaming content delivery application on Amazon EC2 instances within a private subnet. The security team needs to implement a solution to monitor the environment for active threats, such as EC2 instances communicating with known command-and-control (C2) servers or performing brute-force attacks. The solution must require minimal operational overhead and provide automatic alerting. Which configuration will meet these requirements?

Cevabı ve açıklamayı göster

Cevap: Enable Amazon GuardDuty to automatically analyze AWS CloudTrail management events, VPC Flow Logs, and DNS logs, and configure an Amazon EventBridge rule to route high-severity findings to an Amazon SNS topic for alerting.

Cevap

Enable Amazon GuardDuty to automatically analyze AWS CloudTrail management events, VPC Flow Logs, and DNS logs, and configure an Amazon EventBridge rule to route high-severity findings to an Amazon SNS topic for alerting.
The correct solution uses Amazon GuardDuty, which is a managed threat detection service. It continuously analyzes data sources such as VPC Flow Logs, DNS logs, and CloudTrail management events using machine learning, anomaly detection, and integrated threat intelligence to detect malicious behavior (such as command-and-control communications or brute-force attacks) with minimal operational overhead. Integrating GuardDuty with Amazon EventBridge and Amazon SNS allows the security team to receive automatic alerts for high-severity findings.

Adım Adım Çözüm

1
Enable Amazon GuardDuty in the target AWS account.
Amazon GuardDuty immediately begins consuming and analyzing logs including VPC Flow Logs, CloudTrail management events, and DNS query logs without impacting the performance of running EC2 instances.
This establishes the core detection mechanism that leverages built-in threat intelligence and machine learning to identify indicators of compromise, such as command-and-control communications.
2
Configure an Amazon EventBridge rule filtered for GuardDuty findings.
EventBridge detects when a new threat finding is generated by GuardDuty and matches it against the specified filter pattern (e.g., severity level is high).
This provides a serverless event-routing mechanism to automate response workflows.
3
Set the target of the EventBridge rule to an Amazon Simple Notification Service (SNS) topic.
The SNS topic triggers notifications (such as emails or SMS) to the security team upon receiving the matched event from EventBridge.
This completes the automated alerting pipeline with minimal custom code or infrastructure maintenance.

Anahtar Kavram

Continuous threat detection and automated alerting using managed security services
Soru 266Soru

A company wants to allow external development contractors to deploy application resources in a development AWS account. The contractors manage their users in an external identity provider (IdP) that supports SAML 2.0. The security team requires that the contractors only be able to create IAM roles for their applications that do not exceed a specific security baseline. The contractors must not be able to escalate their own permissions or create roles that grant access to unauthorized services. Which TWO options should a solutions architect combine to meet these requirements securely? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Configure SAML 2.0 identity federation to map the contractors' external identity provider groups to an IAM role in the AWS account, allowing them to assume the role.; Create an IAM policy for the contractor role that grants permission to create roles only if the role is created with a specific IAM permissions boundary policy attached, using the iam:PermissionsBoundary condition key.

Cevap

Configure SAML 2.0 identity federation to map the external IdP groups to an IAM role, and use an IAM permissions boundary policy enforced via the iam:PermissionsBoundary condition key on the contractor role's permissions.
The correct options implement a secure, best-practice architecture. By configuring SAML 2.0 federation, the company avoids creating long-term IAM credentials for external contractors. Enforcing a permissions boundary via the iam:PermissionsBoundary condition key prevents the contractors from creating roles that exceed the baseline policy or escalating their own permissions.

Adım Adım Çözüm

1
Establish secure federated access for external contractors.
Contractors authenticate using their existing external Identity Provider (IdP) via SAML 2.0, assuming a temporary session role in AWS instead of using long-term IAM user credentials.
Aligns with the principle of least privilege and eliminates the risk associated with managing and rotating static credentials.
2
Define the security baseline using an IAM permissions boundary policy.
An IAM permissions boundary policy is created that lists the maximum allowed actions (e.g., S3 and DynamoDB access).
This policy does not grant permissions by itself, but defines the maximum privilege limit for any role to which it is applied.
3
Enforce the boundary policy on the contractors' role creation actions.
An IAM policy attached to the contractors' assumed role allows the iam:CreateRole action only when accompanied by the iam:PermissionsBoundary condition key referencing the baseline boundary policy ARN.
Prevents contractors from creating roles with elevated privileges, effectively blocking privilege escalation.

Anahtar Kavram

Delegating role creation securely using SAML 2.0 federation and IAM Permissions Boundaries to prevent privilege escalation.
Tahmini Süre:2m 30s
Soru 267Soru

A company is designing a secure web application that will run on Amazon EC2 instances in a private subnet. The application needs to retrieve database credentials and encrypt sensitive files before storing them in an Amazon S3 bucket. The security policy mandates that database credentials must be rotated every 30 days, the encryption keys must be rotated annually, and the EC2 instances must access these resources securely using temporary credentials. Which TWO actions should the solutions architect take to meet these requirements?

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Create an IAM role with permissions to retrieve the credentials and decrypt with the AWS KMS key, associate the role with an EC2 instance profile, and attach it to the EC2 instances.; Store the database credentials in AWS Secrets Manager with automatic rotation enabled, and enable automatic annual rotation for the customer managed KMS key.

Cevap

To meet the security requirements, the solutions architect should store the database credentials in AWS Secrets Manager with automatic rotation, enable annual key rotation for the customer managed KMS key, and use an IAM role associated with an EC2 instance profile to grant the EC2 instances secure access to those resources.
The correct solution involves storing the credentials in AWS Secrets Manager and enabling automatic 30-day rotation, enabling automatic annual key rotation for the customer managed KMS key, and creating an IAM role attached to an EC2 instance profile to provide temporary credentials to the instances. This configuration ensures credentials and keys are rotated securely, and the EC2 instances access resources without hardcoded credentials.

Adım Adım Çözüm

1
Configure secure credential management and key rotation.
Store the database credentials in Secrets Manager with a 30-day rotation schedule, and enable automatic annual rotation on the KMS key.
This satisfies the operational requirement to periodically rotate secrets and keys automatically.
2
Provide secure access to EC2 instances using IAM roles.
Create an IAM role with policy permissions to retrieve the secret and decrypt using the KMS key, associate it with an instance profile, and attach it to the EC2 instances.
This allows the application to authenticate using temporary security credentials rather than hardcoded long-term credentials.

Anahtar Kavram

Secure credential management, encryption key rotation, and IAM role association for EC2 instances.
Tahmini Süre:2m 0s
Soru 268Soru

A company needs to grant temporary access to an Amazon S3 bucket in its AWS production account to external, third-party contractors. The contractors authenticate through an external OpenID Connect (OIDC) compliant identity provider and do not have their own AWS accounts. The company's security policy strictly prohibits the use of long-term credentials for external access. Which combination of actions should a solutions architect recommend to configure this access securely? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Create an IAM identity provider for the OIDC-compliant identity provider in the AWS account.; Create an IAM role with a trust policy that allows the sts:AssumeRoleWithWebIdentity action, and attach an IAM policy that allows read and write permissions to the target S3 bucket.

Cevap

Establish trust with the external OpenID Connect (OIDC) identity provider by creating an IAM identity provider, and configure an IAM role with a trust policy that permits the sts:AssumeRoleWithWebIdentity action combined with an S3 access policy.
The correct solution involves configuring web identity federation. By creating an IAM identity provider for the OIDC-compliant IdP, AWS can validate external tokens. Creating an IAM role that allows the 'sts:AssumeRoleWithWebIdentity' action in its trust policy enables the external contractors to dynamically exchange their OIDC token for temporary AWS security credentials, conforming to the least privilege principle and the requirement to avoid long-term credentials.

Adım Adım Çözüm

1
Register the external identity provider (IdP) in IAM.
Trust is established between AWS and the OIDC-compliant provider.
This allows AWS to recognize and validate OIDC authentication tokens presented by the contractors.
2
Create an IAM role with a trust policy that specifies the OIDC identity provider as the principal.
The role can be assumed by external users via the web identity token exchange.
The trust policy must permit the action 'sts:AssumeRoleWithWebIdentity' to allow the OIDC provider's users to trade identity tokens for temporary AWS security credentials.
3
Attach a policy to the IAM role that grants permissions to the specific S3 bucket.
Temporary credentials obtained from assuming the role only possess read and write access to the targeted S3 bucket.
This enforces the principle of least privilege by scoping the temporary credentials to only the necessary resources.

Anahtar Kavram

Web Identity Federation (OIDC) and IAM Roles
Soru 269Soru

A company is deploying a containerized application on Amazon EC2 instances. The application requires access to an Amazon DynamoDB table to retrieve configuration settings. The developer proposes creating a new IAM user, generating long-term access keys, and embedding them in the application's configuration file. Which solution should a solutions architect recommend to establish secure access while adhering to the principle of least privilege?

Cevabı ve açıklamayı göster

Cevap: Create an IAM role with a permissions policy that allows access to the DynamoDB table, attach this role to the EC2 instances using an instance profile, and configure the application to use the AWS SDK to retrieve temporary credentials automatically.

Cevap

Create an IAM role with a permissions policy that allows access to the DynamoDB table, attach this role to the EC2 instances using an instance profile, and configure the application to use the AWS SDK to retrieve temporary credentials automatically.
The correct solution uses an IAM role attached to the EC2 instances via an instance profile. This is the recommended security best practice because it eliminates the need to manage, store, or rotate long-term AWS credentials. The AWS SDK running inside the EC2 instances automatically retrieves temporary security credentials from the Instance Metadata Service (IMDS) to perform the authorized actions on DynamoDB.

Adım Adım Çözüm

1
Define an IAM policy outlining the least privilege permissions required to access the target DynamoDB table.
An IAM policy document specifying permissions for DynamoDB actions.
Ensures the application has only the necessary access permissions.
2
Create an IAM role and attach the DynamoDB permissions policy to it.
An IAM role configured with the specific permissions.
Allows AWS resources or services to assume the identity and use the permissions of this role.
3
Attach the IAM role to the EC2 instances using an EC2 instance profile.
The EC2 instances now have access to retrieve security credentials for the assumed IAM role via the Instance Metadata Service (IMDS).
Enables the application to fetch temporary credentials automatically through the AWS SDK without hardcoding keys.

Anahtar Kavram

EC2 Instance Profiles and IAM Roles
Tahmini Süre:1m 30s
Soru 270Soru

An enterprise has an on-premises data processing application that runs on physical servers in a local data center. The application needs to upload large volumes of processed transaction logs to an Amazon S3 bucket in the company's AWS production account. The company's security policy strictly prohibits the use of long-term credentials, such as IAM access keys, stored on local servers. A solutions architect must design a secure authentication and authorization mechanism for this application. Which combination of actions will meet these requirements? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Configure AWS Identity and Access Management (IAM) Roles Anywhere by establishing a trust anchor with an on-premises Certificate Authority (CA).; Create an IAM role with a trust policy that allows the IAM Roles Anywhere service principal to assume the role, and attach the necessary permissions for Amazon S3.

Cevap

Establish a trust anchor using an on-premises Certificate Authority (CA) in AWS IAM Roles Anywhere, and create an IAM role trusting the IAM Roles Anywhere service principal with the necessary Amazon S3 permissions.
The correct strategy relies on AWS IAM Roles Anywhere. First, establishing a trust anchor with the company's Certificate Authority allows IAM Roles Anywhere to authenticate local servers using digital certificates. Second, creating an IAM role that trusts the IAM Roles Anywhere service principal allows the authenticated servers to acquire temporary security credentials to write to the Amazon S3 bucket, meeting all requirements without storing long-term credentials.

Adım Adım Çözüm

1
Select a mechanism to authenticate non-AWS workloads securely without static credentials.
Identify AWS IAM Roles Anywhere as the ideal solution to issue short-term AWS credentials to on-premises servers using public key infrastructure (PKI).
IAM Roles Anywhere eliminates the security risks associated with storing long-term credentials on local physical servers.
2
Establish trust between the local CA and AWS.
Create a trust anchor in IAM Roles Anywhere pointing to the on-premises Certificate Authority (CA).
This allows AWS to verify the identity of the physical servers when they present their certificates signed by the local CA.
3
Authorize the authenticated servers to write to Amazon S3.
Configure an IAM role with a trust policy allowing the service principal 'rolesanywhere.amazonaws.com' to assume the role, and attach the required S3 bucket policies or permissions.
When the servers successfully authenticate, IAM Roles Anywhere will return temporary credentials by assuming this role.

Anahtar Kavram

AWS IAM Roles Anywhere enables on-premises workloads to obtain temporary security credentials using X.509 digital certificates, eliminating the need to store long-term IAM access keys on local hardware.
Soru 271Soru

A Solutions Architect is setting up a new multi-account AWS environment using AWS Organizations. The company's security policy requires centralized management of user access across all AWS accounts, allowing employees to log in using their existing corporate credentials. Which approach should the Solutions Architect recommend to meet these requirements securely?

Cevabı ve açıklamayı göster

Cevap: Enable AWS IAM Identity Center in the organization, and integrate it with the corporate identity provider for centralized user access.

Cevap

Enable AWS IAM Identity Center in the organization, and integrate it with the corporate identity provider for centralized user access.
Enabling AWS IAM Identity Center and integrating it with the corporate identity provider is the AWS-recommended best practice for managing centralized user access across a multi-account organization. It allows employees to use their existing credentials and supports role-based access control with temporary credentials.

Adım Adım Çözüm

1
Identify the primary requirement: centralized management of user access across multiple AWS accounts in an organization using corporate credentials.
Requires a federated single sign-on (SSO) solution.
Centralized federation avoids managing individual credentials per account.
2
Evaluate AWS services suitable for centralized federation across AWS Organizations.
AWS IAM Identity Center provides built-in integration with external identity providers and centralized permission management.
It natively supports multi-account environments under AWS Organizations.
3
Eliminate options that require creating individual IAM users or using root credentials.
Options proposing individual IAM users or root user credentials are secure-practice violations.
They violate the principle of least privilege and represent management overhead.

Anahtar Kavram

Centralized Multi-Account Identity Federation
Tahmini Süre:45s
Soru 272Soru

A corporation uses an external identity provider (IdP) to manage its workforce identities. A solutions architect must configure access to the AWS Management Console for 200200 developers. Which strategy aligns with AWS security best practices to grant this access?

Cevabı ve açıklamayı göster

Cevap: Configure identity federation using AWS IAM Identity Center to allow the developers to sign in using their existing corporate credentials.

Cevap

Configure identity federation using AWS IAM Identity Center to leverage existing corporate credentials and centralize management.
Configuring identity federation using AWS IAM Identity Center allows developers to sign in with their existing corporate credentials. This approach centralizes access management, avoids the creation of long-term credentials like IAM passwords or access keys, and scales efficiently as the organization grows.

Adım Adım Çözüm

1
Analyze the request: grant AWS console access to 200200 developers already managed in an external corporate identity provider.
Identified that managing 200200 local IAM users manually is inefficient and insecure compared to federating the existing identity provider.
AWS security best practices advocate for federated access over creating long-term IAM credentials for workforce users.
2
Select AWS IAM Identity Center as the correct AWS service for managing SSO access to AWS accounts.
Developers can log in with their corporate credentials without new IAM users being generated.
AWS IAM Identity Center simplifies access management by delegating authentication to the corporate IdP.

Anahtar Kavram

Workforce identity federation is the AWS-recommended method for granting corporate directory users access to AWS resources, minimizing credential management overhead.
Tahmini Süre:45s
Soru 273Soru

A financial services firm hosts a banking API on AWS using an Application Load Balancer (ALB) and Amazon EC2 instances in a private subnet. The API has recently been targeted by sudden HTTP flood attacks consisting of a high volume of HTTP POST requests, which exhaust the CPU resources of the backend EC2 instances. The firm needs to mitigate these application-layer (Layer 7) attacks at the network edge before they reach the ALB. Which solution should a solutions architect recommend?

Cevabı ve açıklamayı göster

Cevap: Deploy an Amazon CloudFront distribution in front of the Application Load Balancer, and associate AWS WAF with the CloudFront distribution using a rate-based rule.

Cevap

Deploy an Amazon CloudFront distribution in front of the Application Load Balancer, and associate AWS WAF with the CloudFront distribution using a rate-based rule.
The correct solution uses Amazon CloudFront as a caching and distribution layer at the AWS edge to act as the first line of defense. By associating AWS WAF with the CloudFront distribution, the architecture can inspect Layer 7 HTTP traffic. A WAF rate-based rule counts requests from individual IP addresses and temporarily blocks them if they exceed a defined threshold (e.g., 100 requests per 5 minutes). This prevents the HTTP flood from reaching the regional Application Load Balancer and overloading the backend EC2 instances.

Adım Adım Çözüm

1
Analyze the attack vector and mitigation requirements.
The attack is a Layer 7 HTTP flood (POST requests) causing CPU exhaustion on backend servers, which must be blocked at the edge before hitting the ALB.
Identifying the layer of the attack (Layer 7) determines the tool needed (AWS WAF) rather than network-level firewalls (Security Groups or NACLs).
2
Evaluate the architectural entry point for edge protection.
Amazon CloudFront distributes traffic across AWS edge locations, absorbing Layer 3 and 4 traffic globally.
Deploying CloudFront allows the security controls to be evaluated close to the client, preventing malicious traffic from reaching the regional VPC resources.
3
Select the appropriate security service and rule type for Layer 7 rate limiting.
AWS WAF with a rate-based rule is associated with the CloudFront distribution.
AWS WAF rate-based rules automatically track request rates from individual IP addresses and apply a block action once the configured threshold is breached, mitigating HTTP floods dynamically.

Anahtar Kavram

Layer 7 DDoS mitigation at the AWS network edge using Amazon CloudFront and AWS WAF rate-based rules.
Tahmini Süre:1m 30s
Soru 274Soru

A gaming company is deploying a new multiplayer gaming lobby API on AWS. The company needs to protect the API endpoint against distributed denial of service (DDoS) attacks at the network layer, and block malicious Layer 7 request patterns such as HTTP floods. Which combination of AWS services should a Solutions Architect recommend to meet these requirements? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: AWS WAF to analyze and block malicious application-layer (Layer 7) web requests.; AWS Shield Advanced to provide automatic mitigation against distributed denial of service (DDoS) attacks at the network and transport layers (Layer 3 and 4).

Cevap

The correct services are AWS WAF and AWS Shield Advanced.
To satisfy both requirements, the Solutions Architect should recommend AWS WAF and AWS Shield Advanced. AWS WAF protects the API endpoint at the application layer (Layer 7) by inspecting incoming request characteristics and implementing rate limits. AWS Shield Advanced protects resources against Layer 3 and Layer 4 volumetric attacks, ensuring infrastructure-level availability.

Adım Adım Çözüm

1
Analyze the requirement for blocking application-layer (Layer 7) attacks, such as HTTP floods.
Identify AWS WAF as the service designed to inspect HTTP/HTTPS payloads and execute rate-based blocking.
AWS WAF operates at Layer 7 and can inspect headers, query strings, and request rates.
2
Analyze the requirement for blocking infrastructure-layer (Layer 3 and 4) DDoS attacks.
Identify AWS Shield Advanced as the service designed to mitigate volumetric network-layer attacks.
AWS Shield Advanced offers tailored detection and automatic mitigation against L3/L4 DDoS attacks on endpoints.

Anahtar Kavram

AWS Edge Security and DDoS Mitigation Layer Separation
Soru 275Soru

A company's security team identifies malicious traffic originating from a single public IP address (198.51.100.45198.51.100.45). A solutions architect must immediately block all incoming traffic from this specific IP address to an entire public subnet. Which of the following actions should the solutions architect take to meet this requirement?

Cevabı ve açıklamayı göster

Cevap: Add an inbound deny rule for the malicious IP address in the Network Access Control List (Network ACL) associated with the public subnet.

Cevap

Add an inbound deny rule for the malicious IP address in the Network Access Control List (Network ACL) associated with the public subnet.
The correct answer describes adding an inbound deny rule to the Network ACL associated with the public subnet. Network ACLs operate at the subnet level and are stateless, allowing Solutions Architects to define both allow and deny rules. This allows for blocking a single malicious IP address from reaching any resource inside the subnet.

Adım Adım Çözüm

1
Determine the scope of the restriction.
The requirement is to block traffic at the subnet level, rather than individual instances.
This helps determine whether to use an instance-level control (Security Group) or a subnet-level control (Network ACL).
2
Evaluate filtering rules capability.
To block a specific IP address, an explicit deny rule is required. Security Groups only support allow rules, while Network ACLs support both allow and deny rules.
Since the goal is to deny traffic, the solutions architect must use a Network ACL.
3
Apply the configuration.
Add an inbound rule in the Network ACL with a rule number lower than the default allow rule, targeting the IP address 198.51.100.45/32198.51.100.45/32 with a DENY action.
Network ACL rules are evaluated in order of rule numbers, so placing the deny rule first ensures that the traffic is rejected before hitting generic allow rules.

Anahtar Kavram

Subnet-level traffic filtering using Network ACLs
Soru 276Soru

An enterprise is designing a multi-account strategy using AWS Organizations. An application running on Amazon ECS tasks in the Production Account (Account A) must retrieve database credentials from AWS Secrets Manager in the Security Account (Account B). The secret in Account B is encrypted using a customer managed KMS key. The development team must also be federated into both accounts using their corporate Identity Provider (IdP) to manage these workloads. The architecture must satisfy security audits, enforce automatic rotation of credentials, and adhere to the principle of least privilege. Which combination of actions should the solutions architect take to meet these requirements securely? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Configure AWS IAM Identity Center integrated with the corporate SAML 2.0 Identity Provider (IdP) to manage console access, and assign developers to appropriate permission sets in both Account A and Account B.; Attach an IAM role to the ECS task definition in Account A that grants permissions to retrieve the secret and decrypt with the KMS key. In Account B, update the resource-based policy of the secret and the key policy of the KMS key to permit access from the ECS task IAM role.

Cevap

To meet the requirements, the solutions architect should configure AWS IAM Identity Center integrated with the corporate SAML 2.0 Identity Provider (IdP) to manage console access, and attach an IAM role to the ECS task definition in Account A that has permission to retrieve the secret and decrypt using the KMS key, while configuring the resource-based policy of the secret and the KMS key policy in Account B to trust the ECS task role.
The correct solution involves setting up AWS IAM Identity Center for federated single sign-on access to eliminate the need for local IAM users, and establishing cross-account access by combining identity-based policies (ECS task role) in the source account with resource-based policies (the secret and KMS key policies) in the target account.

Adım Adım Çözüm

1
Configure AWS IAM Identity Center integrated with the corporate SAML 2.0 IdP.
Developers can single sign-on to multiple AWS accounts (Account A and Account B) using temporary credentials instead of long-term IAM user access keys.
This satisfies security audits and complies with the best practice of avoiding long-term access credentials.
2
Create an IAM role in Account A, attach permissions to access Secrets Manager and KMS decrypt, and assign this role as the ECS Task Role in the task definition.
The application containers run with the specific IAM identity containing only the permissions required to retrieve the secret.
This adheres to the principle of least privilege by avoiding giving permissions to the ECS container instance profile.
3
Configure resource-based policies in Account B for the Secrets Manager secret and the Customer Managed KMS Key to trust the ECS Task Role ARN from Account A.
The ECS Task in Account A is authorized to read the secret in Account B and decrypt the ciphertext.
Cross-account access requires permissions to be granted on both the identity-based policy (ECS task role) and the resource-based policies (KMS key policy and Secrets Manager secret policy).

Anahtar Kavram

Cross-account access delegation using IAM roles, resource policies, KMS key policies, and IAM Identity Center federation.
Soru 277Soru

An enterprise architecture consists of a primary production workload running on Amazon ECS in the us-east-1 region, and a testing suite running in a secondary development AWS account. The production ECS tasks must connect to a Multi-AZ Amazon Aurora PostgreSQL database. The security policy mandates that database credentials must be rotated every 30 days without application downtime, and all sensitive data at rest must be encrypted using a customer managed key (CMK). Additionally, a non-sensitive configuration file containing public API endpoints must be shared with the testing suite in the development account. The operations team wants to implement these requirements while minimizing ongoing AWS costs and administrative overhead. Which design meets these requirements?

Cevabı ve açıklamayı göster

Cevap: Store the database credentials in AWS Secrets Manager and configure automatic rotation every 30 days using the AWS-provided rotation Lambda function. Encrypt the secret using a KMS customer managed key (CMK). Store the non-sensitive public API endpoints as standard String parameters in Systems Manager Parameter Store, and allow the development account to access them by assuming a cross-account IAM role in the production account.

Cevap

Store the database credentials in AWS Secrets Manager with automatic rotation enabled using the AWS-provided rotation Lambda function, and encrypt them with a KMS customer managed key (CMK). Store the non-sensitive public API endpoints as standard String parameters in Systems Manager Parameter Store, and share them with the development account using a cross-account IAM role.
The correct solution uses AWS Secrets Manager for the database credentials, which supports native, automated rotation via Lambda for Aurora PostgreSQL and integrates with KMS for encryption at rest. For the non-sensitive public API endpoints, using Systems Manager Parameter Store standard String parameters is the most cost-effective approach since standard parameters are free. Since Parameter Store does not support resource-based policies, sharing them with the development account is securely accomplished by having the development account assume a cross-account IAM role.

Adım Adım Çözüm

1
Select the appropriate storage for database credentials.
Database credentials must be stored in AWS Secrets Manager to support automated rotation using the built-in RDS/Aurora rotation Lambda templates.
Systems Manager Parameter Store does not natively support automated database credential rotation templates, and using Secrets Manager meets the 30-day rotation security requirement with minimal operational overhead.
2
Ensure encryption of the sensitive credentials.
Encrypt the Secrets Manager secret using an AWS KMS customer managed key (CMK) to comply with the encryption at rest mandate.
Customer managed keys provide granular control over key rotation and access policies.
3
Optimize costs for non-sensitive data and share it cross-account.
Store public API endpoints as standard String parameters in Systems Manager Parameter Store, and allow cross-account access by assuming an IAM role.
Standard String parameters in Systems Manager Parameter Store are free, avoiding the cost of storing non-sensitive data in Secrets Manager. Since Parameter Store does not support resource-based policies, a cross-account IAM role in the production account must be assumed by the dev account.

Anahtar Kavram

Selecting between AWS Secrets Manager and Systems Manager Parameter Store based on rotation capabilities, cost optimization, and cross-account access mechanisms.
Soru 278Soru

A company is transitioning to a multi-account environment managed by AWS Organizations. The solutions architect is designing a centralized identity and governance strategy. The company plans to federate its corporate identity provider with AWS IAM Identity Center. The security team requires that no local IAM users or programmatic access keys be created within any member accounts, except for a pre-authorized emergency break-glass role. The management account must remain unaffected to ensure emergency access is not locked out. Which strategy should the solutions architect recommend to meet these requirements with the least operational overhead?

Cevabı ve açıklamayı göster

Cevap: Create a Service Control Policy (SCP) that denies the iam:CreateUser and iam:CreateAccessKey actions unless the caller is the emergency break-glass role, and attach this SCP to the Organizational Units containing the member accounts.

Cevap

Create a Service Control Policy (SCP) that denies the iam:CreateUser and iam:CreateAccessKey actions unless the caller is the emergency break-glass role, and attach this SCP to the Organizational Units containing the member accounts.
The correct strategy uses AWS Organizations Service Control Policies (SCPs) to establish permission guardrails across Organizational Units (OUs) containing member accounts. By applying a condition that excludes the emergency break-glass role, the exception is maintained. Because SCPs do not restrict the management account, it remains unaffected by design, ensuring emergency access is preserved.

Adım Adım Çözüm

1
Identify the governance requirement to restrict local IAM user and credential creation across member accounts while leaving the management account unaffected.
Realized that Service Control Policies (SCPs) applied at the Organizational Unit (OU) level are the standard mechanism to restrict permissions globally across target accounts without impacting the management account.
SCPs cannot restrict the management account itself, making them ideal to enforce policies on member accounts while leaving the management account unrestricted.
2
Formulate the policy rule to deny the specific IAM actions (iam:CreateUser and iam:CreateAccessKey).
Created a deny statement targeting the specific creation APIs.
This directly prevents the creation of local IAM users and long-term credentials.
3
Apply a condition to allow an exception for the emergency break-glass role.
Added a StringNotLike or StringNotEquals condition checking the caller's ARN against the break-glass role ARN.
This ensures the emergency recovery path remains functional even when the policy is active.

Anahtar Kavram

Enforcing security guardrails across multiple AWS accounts in an organization using Service Control Policies (SCPs) combined with AWS IAM Identity Center for centralized federation.
Soru 279Soru

A solutions architect is configuring network security for Amazon EC2 instances in a VPC. The instances must receive inbound HTTPS traffic from the internet and be able to send outbound requests to download updates. Which two statements correctly describe the behavior of security groups and network access control lists (network ACLs) for this traffic? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: A security group is stateful, which means allowing inbound HTTPS traffic automatically allows the return outbound traffic.; A network ACL is stateless, which means allowing inbound HTTPS traffic requires an outbound rule to allow return traffic on ephemeral ports.

Cevap

Security groups are stateful (allowing inbound traffic automatically allows the return outbound traffic) and network ACLs are stateless (allowing inbound traffic requires an outbound rule to allow return traffic on ephemeral ports).
Security groups are stateful firewalls. When you allow inbound HTTPS traffic, the security group tracks the connection state and automatically permits return traffic outbound. Conversely, network ACLs are stateless and do not track connection states. Therefore, allowing inbound traffic requires an explicit outbound rule to permit return traffic, which typically utilizes ephemeral ports.

Adım Adım Çözüm

1
Analyze the stateful behavior of AWS Security Groups.
Security groups are stateful, meaning any inbound traffic allowed on a port (like port 443 for HTTPS) automatically allows the corresponding return outbound traffic on ephemeral ports.
This determines if security groups need explicit outbound rules for return traffic.
2
Analyze the stateless behavior of AWS Network ACLs.
Network ACLs are stateless, meaning they do not track connection states. Inbound traffic allowed must also be explicitly allowed outbound (usually using ephemeral ports 1024-65535) to let response packets return.
This determines if network ACLs need explicit outbound rules for return traffic.
3
Evaluate the scoping level of Security Groups and Network ACLs.
Security groups operate at the instance/network interface level, whereas network ACLs operate at the subnet level as a firewall.
This verifies the boundaries and application scope of both security mechanisms.

Anahtar Kavram

Stateful security groups vs stateless network ACLs
Soru 280Soru

An organization's software application requires access to two configurations: a static partner API token that does not change, and a backend database password that must rotate automatically every 45 days. The organization wants a cost-effective solution that keeps both secrets encrypted at rest. Which two actions should a solutions architect take to meet these requirements? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Store the database password in AWS Secrets Manager and configure automatic rotation.; Store the static partner API token as a SecureString parameter in AWS Systems Manager Parameter Store.

Cevap

Store the database password in AWS Secrets Manager and configure automatic rotation, and store the static partner API token as a SecureString parameter in AWS Systems Manager Parameter Store.
AWS Secrets Manager is ideal for credentials that require lifecycle management and automatic rotation. Storing the static partner API token as a SecureString parameter in AWS Systems Manager Parameter Store is the most cost-effective and secure method for static secrets that do not require rotation.

Adım Adım Çözüm

1
Analyze the requirements for the static partner API token.
The token is static, does not require automatic rotation, but must be encrypted at rest. Standard parameters of type SecureString in AWS Systems Manager Parameter Store provide free, secure, encrypted storage.
Parameter Store is more cost-effective than AWS Secrets Manager for secrets that do not require rotation.
2
Analyze the requirements for the database password.
The password requires automatic rotation every 45 days. AWS Secrets Manager natively integrates with AWS Lambda to rotate credentials automatically.
AWS Systems Manager Parameter Store does not natively support automatic rotation of secrets, making AWS Secrets Manager the correct choice for this requirement.

Anahtar Kavram

Choosing between AWS Secrets Manager and AWS Systems Manager Parameter Store based on rotation requirements and cost.
ÖncekiSayfa 14 / 22Sonraki
Design Secure Architectures Alıştırma Soruları — AWS Certified Solutions Architect - Associate — Sayfa 14 | Examkin