A team uses AWS Organizations with consolidated billing. They want a multi-account environment where only specific accounts can deploy to a shared ECR repository, and cross-account access must be revocable immediately. Which control strategy is strongest?

Answer

Use an ECR repository policy that grants pull/push permissions to a specific principal ARN per account, and manage it via AWS Resource Access Manager where possible.

Explanation

ECR supports resource-based policies that can be updated instantly to revoke access, and least-privilege by principal ARN can be enforced. This achieves immediate revocation beyond identity-level assumptions.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

A company needs a global, low-latency read path with occasional writes that must be durable and consistent enough to avoid stale reads beyond 5 seconds. Which design best balances consistency, latency, and write durability using AWS managed services?

View question →

You are designing a high-availability architecture where failures must be isolated by functional boundary, not by individual instances. You need automatic recovery, controlled scaling, and health-based routing at the edge. Which combination best meets these requirements?

View question →

You must store sensitive application secrets in a way that supports rotation, auditability, and least-privilege access. Rotation schedule is automated and both EC2 and Lambda functions must retrieve secrets at runtime. Which architecture is most aligned with these needs?

View question →

A payments system uses SQS to buffer events from an external provider. During regional maintenance, you must guarantee that processing continues without message loss, and consumers must scale horizontally with controlled backpressure. Which approach best satisfies these constraints?

View question →

An analytics workload ingests streaming click events and must support ad-hoc SQL queries while processing continues. You need a design that separates ingestion from querying, provides near-real-time freshness, and supports cost-effective schema evolution. Which option is best?

View question →

A legacy system writes files to an on-prem NFS mount. You need to modernize toward S3 with minimal application changes, ensure integrity validation, and handle bursty ingestion. Which approach is most suitable?

View question →

QuestionBack to list