Built by a hiring manager who's conducted 1,000+ interviews at Google, Amazon, Nvidia, and Adobe.
Practice the real Software Engineer questions Petronas asks, out loud, and get your interview readiness score. Everything you need to prepare is below.
Free to start, no credit card. Interview formats vary by team, level, and location — use this guide as preparation, not a guaranteed sequence.
A practical preparation outline based on commonly reported stages. Your actual process may differ.
Comprehensive online assessment including cognitive ability, numerical reasoning, and personality profiling. Petronas's assessments are rigorous and competitive.
Key frameworks and strategies for Software Engineer interviews.
For behavioral questions, use Situation, Task, Action, Result. Focus 50% on the technical actions you took, include code examples and architecture decisions, quantify performance improvements, and explain trade-offs you considered.
The skill areas Petronas evaluates in Software Engineer interviews.
Use these 60 prompts to prepare clear examples. They support practice and are not a claim that every question is asked by Petronas.
Discuss both iterative and recursive approaches. Iterative is O(n) time and O(1) space. Walk through your logic step-by-step, handle edge cases (empty list, single node), and explain trade-offs between approaches.
Align your answers with Petronas's core values.
Loyalty to the nation and the corporation. Petronas employees are expected to uphold the company's national mandate and long-term mission.
Ethical conduct, transparency, and accountability are fundamental. Petronas operates under strict governance and compliance standards.
Practical tips to focus your preparation.
Loyalty, Integrity, Professionalism, and Cohesiveness form the foundation of Petronas's culture. Prepare 2-3 STAR stories for each value and practise connecting your experiences to these principles.
Petronas's psychometric and assessment centre processes are highly competitive. Practise numerical reasoning, verbal ability, and group exercise scenarios well in advance.
Compare Software Engineer interviews across companies
For graduate and management roles, a full-day assessment centre with group exercises, individual presentations, and case studies. Assesses leadership, teamwork, and analytical thinking.
Competency-based panel interview with technical and HR representatives. Questions mapped to Petronas's shared values and role-specific competencies.
Senior leadership review, reference checks, and medical clearance. Petronas's hiring process is thorough. Offers typically within 2-4 weeks of the final interview.
Phone Screen (45-60 min): 1-2 coding problems, basic data structures and algorithms Technical Round 1 (45-60 min): Data structures, algorithm optimization, edge cases Technical Round 2 (45-60 min): System design or advanced coding problem Technical Round 3 (45-60 min): Domain-specific questions, architecture discussions Behavioral Round (30-45 min): Team collaboration, conflict resolution, project ownership
Revarta is the AI interview coach built specifically for the behavioral and leadership rounds that decide Software Engineer hiring. The five reasons candidates pick it:
Story Builder for your specific experience. The Story Builder layer helps you mine your résumé and projects for the moments that map to Software Engineer-specific behavioral themes. Most candidates leave half their best stories on the table — Revarta finds them.
Behavioral signal extraction. Software Engineer interviews test ownership of production failures, technical disagreement with senior engineers, and cross-team dependencies. Revarta's coaching layer surfaces the question behind the question for each theme, so you understand what the interviewer is really testing.
Hiring-manager-grade feedback. Revarta is built by a former Google, Amazon, and Adobe hiring manager who has run 1,000+ real interviews. Feedback is calibrated to what Software Engineer interviewers actually assess — not the agreeable "great answer!" defaults that ChatGPT and most AI tools give you.
Cross-session progress tracking. Track your readiness across Software Engineer-relevant behavioral themes. Not "are you getting more comfortable" but "are you actually improving."
Voice practice with delivery feedback. Tone, pacing, filler words, answer duration — the non-verbal half of the interview. Practicing out loud with honest feedback builds the muscle memory that holds when the real interview starts.
More to read: Best AI Interview Coach in 2026 · The 2026 Interview Prep Tool Buyer's Guide · Try Revarta free.
Use the sliding window technique with a hash map to track character positions. Time complexity O(n), space O(min(n,m)) where m is charset size. Explain how you'd handle Unicode characters vs ASCII.
Combine a hash map and dynamic array. Hash map stores value-to-index mapping, array stores actual values. For delete, swap with last element. Explain why this maintains O(1) for all operations.
Use recursion with min/max bounds that tighten as you traverse. Common mistake is only checking immediate children. Discuss in-order traversal alternative and when each approach is better.
Use a doubly-linked list with a hash map. Hash map provides O(1) lookup, linked list maintains access order. Explain why doubly-linked vs singly-linked, and how to handle capacity constraints.
Use binary search on the smaller array to partition both arrays. Key insight is finding the correct partition point. Discuss why this is better than merging arrays, and handle edge cases like empty arrays.
Show insert, search, and startsWith operations. Discuss time complexity O(m) where m is key length. Explain real-world applications like autocomplete, spell checkers, and IP routing.
Sort intervals by start time first O(n log n). Then iterate and merge if current overlaps with previous. Discuss edge cases like contained intervals, adjacent intervals, and single interval.
Use pre-order traversal with null markers. Explain why pre-order vs other traversals, how to handle reconstruction, and space considerations for unbalanced trees vs balanced trees.
Compare three approaches - sorting O(n log n), max heap O(n log k), and quickselect O(n) average case. Explain when you'd choose each approach based on constraints like k value and array size.
Use Floyd's cycle detection (slow and fast pointers). Explain why this works mathematically, how to find cycle entry point, and the O(1) space advantage over hash set approach.
Use backtracking with recursion. Discuss time complexity O(4^n) worst case, space O(n) for recursion stack. Explain how to optimize with iterative approach using queue if needed.
Cover key generation strategies (base62 encoding, hash-based), database schema, caching layer (Redis), load balancing, and analytics tracking. Discuss trade-offs between different approaches and how to handle 100K+ requests/sec.
Discuss consistent hashing for key distribution, replication strategies, eviction policies (LRU, LFU), cache invalidation, and handling node failures. Compare Redis vs Memcached and when to use each.
Use message queues (Kafka, RabbitMQ) for reliable delivery, separate workers for each channel, priority queues, retry mechanisms, and rate limiting. Discuss how to handle millions of concurrent users.
Cover WebSocket connections, message queue for async processing, database sharding for scalability, read receipts, typing indicators, and offline message storage. Discuss how to handle message ordering and consistency.
Compare token bucket, leaky bucket, and fixed/sliding window algorithms. Discuss distributed rate limiting using Redis, handling clock synchronization, and trade-offs between accuracy and performance.
Use blob storage (S3), async processing with queues, chunked uploads for large files, virus scanning, thumbnail generation, and CDN for distribution. Discuss handling upload failures and resume capability.
Use trie data structure for prefix matching, caching popular queries, ranking by frequency/freshness, handling typos with fuzzy matching, and personalization. Discuss how to update suggestions in real-time.
Cover distributed tracing (OpenTelemetry), centralized logging (ELK stack), metrics collection (Prometheus), alerting rules, log aggregation, and retention policies. Discuss handling log volume at scale.
Cover database schema for spots/floors/vehicles, reservation system, payment processing, real-time updates using WebSockets or polling, and handling concurrent bookings. Discuss ACID properties for transactions.
Discuss CDN for content delivery, adaptive bitrate streaming, encoding pipeline, recommendation system, user profile management, and analytics. Cover how Netflix handles regional content and DRM.
Cover Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion. Give concrete code examples for each. Explain how these principles improve maintainability and testability.
Discuss test pyramid (unit > integration > E2E), code coverage goals (70-80% is reasonable), testing edge cases and error paths, using mocks/stubs, and TDD approach. Explain when NOT to write tests.
Use backward-compatible changes, deploy in phases (add new column, migrate data, update code, remove old column), feature flags, and rollback strategies. Discuss tools like Flyway or Liquibase.
Discuss feature branches, pull requests, code reviews, commit message conventions, rebasing vs merging, and CI/CD integration. Explain how you prevent conflicts through good communication and small PRs.
Cover automated testing, linting, code reviews, static analysis tools, coding standards, documentation, and technical debt management. Discuss balancing speed with quality.
Start with domain-driven design to identify bounded contexts, extract services incrementally (strangler fig pattern), use API gateway, implement service mesh, and establish observability. Discuss when NOT to use microservices.
Cover automated testing, linting, security scanning, artifact building, deployment stages (dev/staging/prod), rollback mechanisms, and monitoring. Discuss tools like Jenkins, GitHub Actions, or CircleCI.
Categorize debt (deliberate vs accidental), quantify impact on velocity, allocate regular time for cleanup (20% rule), and document decisions. Discuss using tech debt registers and prioritization frameworks.
Use APM tools (New Relic, DataDog), check database query performance, analyze N+1 queries, review caching strategy, check network latency, and CPU/memory usage. Explain systematic debugging approach.
Use EXPLAIN to analyze query plan, add appropriate indexes, avoid SELECT *, denormalize if needed, use query caching, and consider read replicas. Discuss trade-offs between read and write performance.
Discuss generational GC, young/old generation, GC algorithms (Serial, Parallel, CMS, G1), monitoring GC pauses, tuning heap size, and when to use off-heap storage. Focus on JVM if applicable.
Profile with memory analyzers, identify memory leaks, optimize data structures, use object pooling, compress data, lazy loading, and streaming for large datasets. Discuss monitoring tools and metrics.
Cover code splitting, lazy loading, image optimization, CDN usage, browser caching, minification, tree shaking, and critical CSS. Discuss Core Web Vitals and measuring with Lighthouse.
Cover authentication (JWT, OAuth), authorization (RBAC), input validation, SQL injection prevention, XSS protection, CSRF tokens, rate limiting, and HTTPS. Discuss OWASP Top 10 vulnerabilities.
Use bcrypt/Argon2 for hashing with salts, never store plain text, implement MFA, use secure session management, have password complexity requirements, and handle password reset securely. Discuss brute force protection.
Use encryption at rest (AES-256), TLS for transmission, tokenization for sensitive fields, access control at database level, audit logging, and key management systems. Discuss compliance requirements (GDPR, PCI-DSS).
Use STAR method (Situation, Task, Action, Result). Emphasize systematic approach, communication with team, using logs/metrics, and lessons learned. Show how you prevented similar issues in the future.
Show respect for others' opinions, use data to support your position, be willing to compromise, and focus on project goals over ego. Explain the outcome and what you learned.
Mention specific resources (blogs, conferences, courses), side projects, open source contributions, and how you evaluate which technologies to learn. Show continuous learning mindset.
Explain the business context, what you prioritized and why, how you managed technical debt, and lessons learned. Show pragmatic thinking and business awareness.
Choose a project that showcases technical depth, problem-solving skills, and resilience. Discuss specific challenges, your approach, collaboration with team, and measurable outcomes.
Discuss reading documentation, running the code locally, asking questions, pair programming, starting with small tasks, and building mental models. Show systematic and humble approach.
Use sorted character signature as hash key, group anagrams together. For Google scale, discuss MapReduce, distributed hash tables, and handling billions of words. Show understanding of distributed computing.
Discuss indexing pipeline, inverted index data structure, distributed caching, geographically distributed data centers, and load balancing. Show understanding of ranking algorithms and personalization at scale.
Cover relevance scoring factors (engagement, recency, connection strength), machine learning models, A/B testing framework, and handling billions of posts. Discuss ethical considerations like echo chambers.
Use DFS with color marking (white/gray/black) or union-find for undirected graphs. Discuss time complexity O(V+E) and when this matters for Facebook's social graph scale (billions of users).
Cover collaborative filtering, content-based filtering, hybrid approaches, real-time updates, handling cold start problem, and A/B testing. Discuss how Amazon uses purchase history and browsing patterns.
Use recursive approach checking if nodes are in left or right subtree. Time O(n), space O(h) for recursion stack. Discuss optimization for BST case and handling when one node is ancestor of other.
Know the four shared values — Loyalty, Integrity, Professionalism, Cohesiveness. Choose one and connect it to a genuine personal experience.
Safety is critical in oil and gas. Share an example of safety awareness from any context — proactive risk identification, stopping unsafe work, or promoting safety culture.
Malaysia is multicultural, and Petronas operates globally. Show genuine appreciation for diversity and specific examples of effective cross-cultural collaboration.
Show structured problem-solving, analytical thinking, and technical depth. Include how you collaborated with others and the impact of your solution.
Discuss the shift toward renewables, carbon capture, hydrogen, and how traditional oil companies are evolving. Reference Petronas's specific sustainability initiatives.
Show ethical decision-making when it was costly or uncomfortable. Petronas values employees who do the right thing regardless of consequences.
Oil and gas often involves remote postings. Show willingness, adaptability, and strategies for maintaining effectiveness and wellbeing in challenging locations.
Show how you contributed to team unity, navigated differences, and ensured everyone worked toward a shared goal effectively.
Connect to Petronas's national importance, technical excellence, and global reach. Show long-term career thinking aligned with Petronas's development programs.
Reference specific industry publications, conferences, or courses. Show genuine interest in the energy sector beyond your immediate role.
World-class technical expertise and professional standards. Petronas benchmarks against the best global energy companies.
Unity and teamwork across diverse teams. Malaysia's multicultural society is reflected in Petronas's workforce, and collaboration across backgrounds is essential.
Health, Safety, Security, and Environment are paramount. Petronas operates in hazardous environments where safety culture saves lives.
Petronas is actively transitioning toward cleaner energy solutions while maintaining its core hydrocarbon business. Employees are expected to contribute to this evolution.
Petronas is navigating the transition from traditional hydrocarbons to cleaner energy. Show awareness of carbon capture, hydrogen, renewables, and how Petronas is positioning for a lower-carbon future.
HSSE is paramount in oil and gas. Prepare examples of safety awareness, risk management, and promoting a zero-harm culture. This applies to all roles, not just operational ones.
Petronas reflects Malaysia's multicultural society and operates globally. Demonstrate genuine comfort and effectiveness working across cultures, languages, and perspectives.
Petronas is a source of national pride for Malaysia. Show genuine respect for the company's role in national development and express interest in a long-term career with global exposure.
