Core Services Flashcards

1
Q

List all Main Core Services

A
  • Contest Service
  • Entry Service
  • Winner Selection Service
  • Notification Service
  • Gateway Service
  • User Assignment Service
  • Data Archival Service
  • Fraud Detection Service
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Components of Contest Service

A
  • Contest Lifecycle Management ( draft, scheduled, closed, in_review, pending winner confirmation, winner_announced, finalized/archived, canceled )
  • Contest Templates
  • High Level Winner and Entry Management
  • RBAC Integration ( view. vs. edit. vs full contest creation )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Components of Entry Service

A
  • Contest Data
  • High-Concurrency Handling: Rate Limiting and load balancing, autoscaling
  • Asyncronous Processing: Background low-latency complex calculations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Components of Winner Selection Service

A
  • Non-Time Critical Selection: Batch processing in a queuing system
  • Immediate Selection: dedicated queue that prioritizes immediate winner determination, leverage caching and distributing processing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Components of Notification System

A
  • Multi-Channel Notification: SMS, in-app, email -> via Amazon SQS for high-throughput notification
  • Dynamic Notification Preferences
  • Automated Retry Logic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Components of Gateway Layer

A
  • Admin Authentication: MFA/2FA
  • Contestant Authentication: Region-specific checks
  • Session Management: Session Timeouts / Token Refresh Intervals
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Components of User Assignment Layer

A
  • RBAC UI
  • Activity Logging ( role changes/ admin activities for compliance and security audits )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Components of Data Archival System

A
  • Automated Archival: Scheduled Jobs move expired contest data to cost-efficient storage
  • Date Retrieval Indexing: Archived data indexed for retrieval, supporting historical analytics, regulatory reviews, and/or AI predictive modeling
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Components of Fraud Detection System

A
  • AI-Powered Detection: ML to detect behavioral anomalies ( sudden score jumps, IP Switching )
  • Rule-Based System: Custom rules for exploit patterns
  • Reputation Scoring: Continuous tracking of user behavior to build reputation profiles, which can dynamically adjust scrutiny levels
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

List all Data Layer Services

A
  • Relational Database ( PostreSQL )
  • Sharding / Partition
  • Data Archival
  • Caching Service
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Components of Relational DB

A
  • Schema
  • ( Composite ) Indexing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Components of Sharding / Partitioning

A
  • Partition Strategy: Shard by user_id or contest_id
  • Cross-Shard Data Access: Mechanism for limited cross-shard queries using aggregators or caching for high demand cross-region data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Components for Data Archival

A
  • Storage Policy: Archived data stored in S3 or BigQuery, indexed for retrieval and governed by retention policies ( ie. GDPR, anonymizing data, deleting after X time )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Components of Caching Service

A
  • Contest Data Caching: Cache active Contest and Contest Template data
  • Cache Locking: Prevent cache stampedes with Redis locking or versioned caches
  • Proactive Cache Warming: Cache upcoming high-traffic contests to reduce DB load
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

List API Integration Services and Components

A

+ Fraud Detection API

  • Rate Limiting and Fallbacks: Enforce throttling and define failover logic if the external API is unavailable
  • Real-Time Alerts: Notify admins of flagged users or entries with detailed fraud reports
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

List components of Security

A
  • 2FA / MFA for Admins
  • oAuth for Contestants
  • Regional Detection: Verify eligibility
  • Prize Redemption Verification: ( Confirm prize reception, integrate with shipping/receipt verification 3rd part service )
17
Q

List Services/Components of Background Jobs and Queueing Systems

A

+ Background Processing
- Priority Queuing: Use High-Pri queues for critical tasks and Lo-Pri Q’s for non-time-sensitive jobs
+ Job Retry Logic
- Exponential Backoff
+ Scheduled Batch Jobs
- Interval-Based Execution

18
Q

List Services / Components for High Availability and Scalability

A

+ Serverless Functions
- Event-Driven invocations: Automatically trigger AWS Lambda for post-contest analysis, data archiving, and Winner Selection
+ Autoscaling Containers ( Kubernetes / EKS )
- Custom autoscaling triggers: Adjust container instances based on request latency, CPU usage, memory and/or traffic.

19
Q

List all Service/Components of Monitoring and Error Logging

A

+ Application Performance Monitoring
- Proactive Alerting: Trigger alerts for anomolies
+ Error Logging
- Categorized Error Alerts
+ Post-Contest Data Analysis
- ML-Driven Insights: ML models analyze user retention patterns.

20
Q

List all Components of Event Processing Layer

A

+ Event Driven Data Logging ( Kafka ) for auditing and fraud detection
+ Transactional Logging
- Detailed Transaction Logs: For auditing and fraud analysis